/// ---------------------------------------------
///
/// 江懷玉
/// 
/// ---------------------------------------------
///----------------------------------------------
// 定义类型
//-----------------------------------------------
//var ParentDictionaryID;
var fnAddSubDictionary = function () {
    document.getElementById("EditUIWindow").src = "/Extend/AutoEditUI.aspx?r=" + Math.random() + "&entity=" + const_EditEntity + "&ParentId=" + record.getData(const_entityID);
    YAHOO.example.container.dialog1.show();
}

var fnCustomAdd = function () {
    //alert("2");
    document.getElementById("EditUIWindow").src = "/Extend/AutoEditUI.aspx?r=" + Math.random() + "&entity=" + const_EditEntity;
    YAHOO.example.container.dialog1.show();
}

var fnCustomEdit = function () {
    document.getElementById("EditUIWindow").src = "/Extend/AutoEditUI.aspx?r=" + Math.random() + "&entity=" + const_EditEntity + "&id=" + record.getData(const_entityID);
    YAHOO.example.container.dialog1.show();
}

if (typeof($)!="undefined") {
    $(document).ready(function () {
        if (getPar1("ParentId") != "") {
            instance[0].ParentID = getPar1("ParentId");
        }
    });
}